#pragma once

#include <stdexcept>

#include <d3d9.h>
#include <d3dx9.h>

#include <wrl.h>
namespace wrl = Microsoft::WRL;

class Background
{
public:
	Background(IDirect3DDevice9* Device, float w, float h);
	~Background();

	Background(const Background&) = delete;
	Background& operator=(const Background&) = delete;

	void Update();
	void Draw(IDirect3DDevice9* Device);

private:
	wrl::ComPtr<IDirect3DVertexBuffer9> _VertexBuffer;
	wrl::ComPtr<IDirect3DTexture9> _Texture;
};

